-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: make show-core-output is failing due to lack of access to management storage account #4407
base: main
Are you sure you want to change the base?
Fix: make show-core-output is failing due to lack of access to management storage account #4407
Conversation
…ut and improve error handling in mgmtstorage scripts.
…ake show-core-output`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR resolves the issue with the failing management storage access when running the make show-core-output
command and cleans up redundant error messages. It also streamlines access verification in the associated shell script.
- Resolves management storage access issue for terraform show command.
- Consolidates error message handling in mgmtstorage_enable_public_access.sh.
- Removes unnecessary access checks to simplify idempotent network rule operations.
Reviewed Changes
File | Description |
---|---|
CHANGELOG.md | Updated the change log with details on the bug fix and error cleanup. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 8956946. ♻️ This comment has been updated with latest results. |
…lean up error messages in mgmtstorage_enable_public_access.sh script
/test 8956946 |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13581524730 (with refid (in response to this comment from @ashis-kar91) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks very much :-)
Resolves #4404
What is being addressed
make show-core-output
command in the make file was executingterraform show
was failing due to lack of access to the management storage account. Because of this TRE deployments were failing while using themake all
command.devops/scripts/mgmtstorage_enable_public_access.sh
during every attempt to verify the storage account access.How is this addressed
core/terraform/show_output.sh
, which will be usingterraform_wrapper.sh
to execute the terraform show.terraform_wrapper.sh
already has the script for management storage exception.devops/scripts/mgmtstorage_enable_public_access.sh
, captured the underlying error in every attempt and printing it at the end if all the attempts fail.devops/scripts/mgmtstorage_enable_public_access.sh
before adding and removing network rules, since both the commands are idempotent.